﻿using Autodesk.AutoCAD.DatabaseServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace AutoCadConvert
{
    public class Cube: BspObject
    {
        public Point Pos;//坐标
        public double Width;//宽度
        public double Thickness=120;//厚度
        public double Height;//高度
        public double Rotation;//旋转度 顺时针

        public Cube()
        {
            
        }
        public override IEnumerable<XElement> ToXml()
        {
            return new XElement[] {
                new XElement("Pos",(Pos??new Point()).ToMirror().ToString()),
                new XElement("Width",Width*Unit),
                new XElement("Thickness",Thickness*Unit),
                new XElement("Height",Height*Unit),
                new XElement("Rotation",Rotation),
            };
        }
    }
}
